home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 14 / CU Amiga Magazine's Super CD-ROM 14 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-09].iso / CUCD / Programming / AMOS / AMOSList0597 / AMOSLIST / text0300.txt < prev    next >
Encoding:
Text File  |  1997-06-01  |  1.6 KB  |  34 lines

  1. I've come across a problem which I remember solving OK years and 
  2. years ago but now I just can't seem to remember what I did.
  3.  
  4. Say for a horizontal scrolling system. Using offset to move along and 
  5. then every 16 or 32 pixels, it copys the screen across to the left, 
  6. draws the side, resets the screen offset and continues.
  7.  
  8. My problem is that I need the screen swap and screen offset to happen 
  9. at the same time, because otherwise there is a flicker as either the 
  10. screen offset moves across before the screen has been swapped OR the 
  11. screen is swapped before the screen offset is reset.
  12. I've tried Wait Vbl and Vbl Wait X and Wait Raster in all possible 
  13. positions to try and get the commands to have been executed before 
  14. the next cycle is drawn.
  15.  
  16. I can only think that as soon as either of these commands are called, 
  17. it must immediately draw the screen.
  18.  
  19. -Murray
  20.  
  21.  
  22.            \\|//     Alastair Murray
  23.            (o o)       pmymagm@pmn1.maths.nott.ac.uk
  24. |~~~~~~oOOo~(_)~oOOo~~~~~|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
  25. |         AMINET         |Web-Page (Amiga/Games/AMOS/trek/Music/    |
  26. |     game/role/CHAOS    |                  +more)                  |
  27. |game/jump/Banana Islands|     http://www.cs.nott.ac.uk/~agm/       |
  28. |   game/shoot/Hanger18  |Current Projects: >Chaos 2                |
  29. |    dev/amos/keystate   | >Kill Em All     >Hanger 18 II           |
  30. |    dev/amos/picpack    | >Skool Daze      >The Crow               |
  31. |                        | >Game Creator    >Banana Islands         |
  32. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  33.  
  34.